package com.zcxy360.sandtable;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.zcxy360.sandtable.domain.Org;
import com.zcxy360.sandtable.domain.OrgMapper;

@RunWith(SpringRunner.class)
@SpringBootTest
public class OrgMapper_test {

	
	@Autowired
	private OrgMapper orgMapper;

	@Test
	public void insert() {
		Org org = new Org();
		org.setName("创业中心2111115");
		orgMapper.insert(org);
		System.out.println(org.getOrgId());
	}
	
	@Test
	public void delete() {
		orgMapper.deleteByExample(null);
	}
}
